package model.bo;

import java.util.ArrayList;

import model.bean.Account;
import model.bean.Members;
import model.dao.AccountManagerDAO;
import form.RegistrationForm;
import form.UpdateInfoForm;

public class AccountManagerBO {
	AccountManagerDAO accountDao = new AccountManagerDAO();
	public boolean CheckLogin(String user,String pass){
		return accountDao.CheckLogin(user,pass);
	}
	
	public boolean CheckAdmin(String user){
		return accountDao.CheckAdmin(user);
	}
	
	public boolean Registration(RegistrationForm registrationForm){
		return accountDao.Registration(registrationForm);
	}
	
	public boolean CheckUser(String user){
		return accountDao.Check(user);
	}
	
	public boolean UpdateInfor(UpdateInfoForm form){
		return accountDao.UpdateInfor(form);
	}
	
	public Account getInforUser(String user){
		return accountDao.getInforUser(user);
	}
	
	public ArrayList<Members> GetListUser (){
		return accountDao.GetListAccount();
	}
	public void DeleteUser(String userName){
		accountDao.DeleteUser(userName);
	}
	public void ResetPassword(String userName, String password){
		accountDao.ResetPassword(userName, password);
	}
}
